<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
<%@ taglib uri="http://www.springframework.org/tags/form" prefix="form" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>

<div id="explanation">
<h3><span><fmt:message key="books.book_info"/></span></h3>
<fieldset>
	<legend><fmt:message key="books.book_info"/></legend>
	<form:form action="" method="POST" modelAttribute="book">
		<form:hidden path="id_libro"/>
			
		<form:label path="isbn" for="isbn" cssErrorClass="error"><fmt:message key="books.isbn"/>: </form:label><br/>
		<form:input path="isbn"/><form:errors path="isbn"/><br/>
		
		<fieldset>
		<legend><fmt:message key="menu.authors"/></legend>
		<c:forEach items="${author}" var="author"><p class="p1">${author.nombre} ${author.apellidos}</p></c:forEach>
		<p class="p2"><span><a href="/Biblioteca/books/addAuthor/"><fmt:message key="data.new_author"/></a></span></p>
		</fieldset><fieldset>
		<legend><fmt:message key="menu.genres"/></legend>
		<c:forEach items="${genre}" var="genre"><p class="p1">${genre.nombre}</p></c:forEach>
		<p class="p2"><span><a href="/Biblioteca/books/addGenre/"><fmt:message key="data.new_genre"/></a></span></p>
		</fieldset>
		
		<input type="submit" value='<fmt:message key="general.add"/>'/>

	</form:form>

</fieldset>

</div>